<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title></title>
	<link rel="stylesheet" href="__PUBLIC__/Admin/Css/public.css" />
	<script type="text/javascript" src="__PUBLIC__/Admin/Js/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/Admin/Js/public.js"></script>
	<style type="text/css">
		.hide{display: none;}
	</style>
	<script type="text/javascript">
		$(function(){
			$('tr[pid=0]').show();
			$('.showPlus').toggle(function(){
				var $pid=$(this).parents('tr').attr('cid');
				$(this).removeClass().addClass('showMinus');
				$("tr[pid="+$pid+"]").show();
			},function(){
				var $pid=$(this).parents('tr').attr('cid');
				$(this).removeClass().addClass('showPlus');
				$("tr[pid="+$pid+"]").hide();
			})
		})
	</script>
</head>

<body>
	<table class="table">
		<tr>
			<td class="th" colspan="20">分类列表</td>
		</tr>
		<tr class="tableTop">
			<td class="tdLittle0 center">展开</td>
			<td class="tdLittle1">ID</td>
			<td>分类名称</td>
			<td class="tdLtitle7">操作</td>
		</tr>
		<volist name='cate' id='vo'>
			<tr cid='{$vo.cid}' pid="{$vo.pid}" class="hide">
				<td><a href="javascript:void(0)" class="showPlus"></a></td>
				<td>{$vo.cid}</td>
				<td>{$vo.html}{$vo.cname}</td>
				
				<td>
					[<a href="{:U('son_add',array('pid'=>$vo['cid']))}">添加子分类</a>][
					<a href="{:U('edit',array('cid'=>$vo['cid']))}">修改</a>][
					<a href="{:U('del',array('cid'=>$vo['cid']))}" class="del">删除</a>]
				</td>
			</tr>
		</volist>
	</table>

</body>
</html>